package com.cxx.purchasecharge.dal;

import java.util.Date;
import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.cxx.purchasecharge.core.model.PaymentSearchForm;
import com.cxx.purchasecharge.core.model.persistence.Payment;
import com.cxx.purchasecharge.dal.common.MyGenericDao;

public interface PaymentDao extends MyGenericDao<Payment, Long> {

	public List<Payment> findByOrderId(long orderId);

	public List<Payment> findByCustomerId(long customerId);

	public List<Payment> findByAdvance(long customerId, Date start, Date end);

	public Page<Payment> findPagePaymentBy(PaymentSearchForm searchForm,
			Pageable pageable);

	public float countPaidBy(PaymentSearchForm searchForm);

}
